﻿using System;
namespace ORS.OrderRobot
{
    /// <summary>
    /// 后台作业接口
    /// </summary>
    /// <typeparam name="TArgs">作业参数类型</typeparam>
    public interface IBackgroundJob<in TArgs>
    {
        /// <summary>
        /// 执行后台作业
        /// </summary>
        /// <param name="args">作业参数</param>
        Task ExecuteAsync(TArgs args);
    }
}

